package com.etc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comments {
    private String comment_no;

    private String comment_date;

    private Movies movies;

    private Integer movie_no;

    private Userinfo userinfo;

    private Integer user_no;

    private Double movie_score;

    private Orders orders;

    private String order_no;

    private String comment_content;

    public Comments(Integer movie_no, Integer user_no, Double movie_score, String order_no, String comment_content) {
        this.movie_no = movie_no;
        this.user_no = user_no;
        this.movie_score = movie_score;
        this.order_no = order_no;
        this.comment_content = comment_content;
    }

    public Comments(String comment_no, Double movie_score, String comment_content) {
        this.comment_no = comment_no;
        this.movie_score = movie_score;
        this.comment_content = comment_content;
    }

    public Comments(String comment_no, String comment_date, Movies movies, Integer movie_no, Userinfo userinfo, Orders orders, String comment_content) {
        this.comment_no = comment_no;
        this.comment_date = comment_date;
        this.movies = movies;
        this.movie_no = movie_no;
        this.userinfo = userinfo;
        this.orders = orders;
        this.comment_content = comment_content;
    }
}